HAL SAI state and error functions migration

This section provides information about the HAL SAI state and error function migration.

HAL SAI get state

HAL1

HAL2

HAL_SAI_GetState(const SAI_HandleTypeDef *hsai);
HAL_SAI_GetState(const hal_sai_handle_t *hsai);

related concepts: Revised and optimized HAL state machine


HAL SAI get error code

HAL1

HAL2

HAL_SAI_GetError(const SAI_HandleTypeDef *hsai);
HAL_SAI_GetLastErrorCodes(const hal_sai_handle_t *hsai);

Related concepts: Revised and optimized HAL error management